'Declaration<ExtensionAttribute()> <JetBrains.Annotations.NotNullAttribute()> Public Overloads Shared Function ReadFunction( _ ByVal metric As SparkplugMetric, _ ByVal valueType As Type, _ ByVal readFunction As Func(Of SparkplugData) _ ) As SparkplugMetric
'UsageDim metric As SparkplugMetric Dim valueType As Type Dim readFunction As Func(Of SparkplugData) Dim value As SparkplugMetric value = SparkplugMetricExtension.ReadFunction(metric, valueType, readFunction)
[Extension()] [JetBrains.Annotations.NotNull()] public static SparkplugMetric ReadFunction( SparkplugMetric metric, Type valueType, Func<SparkplugData> readFunction )
[Extension()] [JetBrains.Annotations.NotNull()] public: static SparkplugMetric^ ReadFunction( SparkplugMetric^ metric, Type^ valueType, Func<SparkplugData^>^ readFunction )
Parameters
- metric
- The Sparkplug metric that will perform the operation.
The value of this parameter cannot be
null(Nothingin Visual Basic). - valueType
- The type of the Sparkplug metric, expressed as .NET System.Type.
The value of this parameter cannot be
null(Nothingin Visual Basic). - readFunction
- The read function, i.e. the function that performs the read operation and returns the Sparkplug data that will be published.
The value of this parameter cannot be
null(Nothingin Visual Basic).
Return Value
This method never returns null (Nothing in Visual Basic).